/**
 * desc：
 * author：王文军
 * date：  2023/1/29 16:01
 */
"use strict";
try {
  const _body = document.getElementsByTagName("html")[0];
  // const _box = document.createElement("div");
  // _box.id = "EPG_API_Plugin";
  // _box.innerHTML =
  //   "<div id='EPG_API_Plugin_container' style='visibility:hidden'>" +
  //   "<span id='remind_txt'>EPG辅助浏览器插件已加载</span>" +
  //   ("</div>");
  var script = document.createElement("script");
  script.src = chrome.runtime.getURL('popup.js');
  if (document.body.tagName === "FRAMESET") {
    // _body.appendChild(_box);
    _body.appendChild(script)
  } else {
    // (document.body || _body || document.documentElement).appendChild(_box);
    (document.body || _body || document.documentElement).appendChild(script);
  }
  console.log('?????????? script',script);

} catch (e) {
  console.log(">>>>>>>>> remind error", e);
}
